﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{
    /// <summary>
    /// 输入参数
    /// 需求单
    /// </summary>
    public class PALLET_ENTRY_request
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 托盘号
        /// </summary>
        public string PalletCode { get; set; }
        /// <summary>
        /// 上料口编号
        /// </summary>
        public string EntranceCode { get; set; }
        /// <summary>
        /// 当前在产的生产批次号
        /// </summary>
        public string ProductionBatchCode { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }

    }
    /// <summary>
    /// 回传数据
    /// 返回信息
    /// </summary>

    public class PALLET_ENTRY_response
    {
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        ///工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 托盘号
        /// </summary>
        public string PalletCode { get; set; }
        /// <summary>
        /// 品类类型
        /// </summary>
        public string CategoryType { get; set; }
        /// <summary>
        /// 托盘物料（部件）总数量
        /// </summary>
        public int TotalQuantity { get; set; }
        /// <summary>
        /// 部件集合
        /// </summary>
        public List<PartSets_List> PartSets { get; set; } = new List<PartSets_List>();

    }
    /// <summary>
    /// 部件集合
    /// </summary>
    public class PartSets_List
    {
        /// <summary>
        /// 顺序号
        /// </summary>
        public int SequenceNumber { get; set; }
        /// <summary>
        /// 生产批次号
        /// </summary>
        public string ProductionBatchCode { get; set; }
        /// <summary>
        /// 任务单号
        /// </summary>
        public string TaskNumber { get; set; }
        /// <summary>
        /// 产品条码号
        /// </summary>
        public string PartSerialNumber { get; set; }
        /// <summary>
        /// 产品物料编号
        /// </summary>
        public string PartMaterialCode { get; set; }
        /// <summary>
        /// 产品数量
        /// </summary>
        public int PartsQuantity { get; set; }

    }
}
